package com.jiangkai.common.shiro.config;

import java.util.LinkedHashMap;


/**
 * 自定义读取权限配置
 * 后期更改为从数据库读取
 * @author jiangkia
 *
 */
public class filterChainDefinitionMapBuilder {

	
	public LinkedHashMap<String,String> buildFilterChainDefinitionMap(){
		LinkedHashMap<String,String> map = new LinkedHashMap<String,String>();
		map.put("/vendor/**", "anon");
		map.put("/assets/**", "anon");
		map.put("/login*", "anon");
		map.put("/doLogin*", "anon");
		map.put("/logout*", "logout");
		map.put("/pub/*", "user,userSession");// user  记住我 或者身份验证
		map.put("/**", "authc");
		return map;
	}
}
